<?php
function findPage($pid){
	include ("conn.php");
	//下面是读取数据
	$sql = "SELECT * FROM pageList WHERE id=".(int)$pid;
	$result = $conn->query($sql);
	$arr = array(); 
	if ($result->num_rows == 1) {
	    // 输出数据
	    $row = $result->fetch_assoc();
	    array_push($arr,$row['id'],$row['title'],$row['class'],$row['time']);
	}
	return $arr;
}

?>